// ==================== src/lib.rs ====================
//! Nacos存储层实现
//! 
//! 本模块提供了多种存储后端的实现：
//! - 内存存储 (Memory)
//! - SQLite存储 (SQLite)
//! - MySQL存储 (MySQL)
//! - PostgreSQL存储 (PostgreSQL)

pub mod error;
pub mod memory;
pub mod file;

#[cfg(feature = "sqlite")]
pub mod sqlite;

#[cfg(feature = "mysql")]
pub mod mysql;

#[cfg(feature = "postgres")]
pub mod postgres;

pub mod factory;
pub mod migration;
pub mod transaction;

// 重新导出核心类型
pub use error::StorageError;
pub use factory::StorageFactory;
pub use memory::MemoryStorage;
pub use file::{FileStorage, FileConfigStorage, FileServiceStorage};

#[cfg(feature = "sqlite")]
pub use sqlite::SqliteStorage;

#[cfg(feature = "mysql")]
pub use mysql::MysqlStorage;

#[cfg(feature = "postgres")]
pub use postgres::PostgresStorage;